<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="layout::head('首页')">
    <style th:inline="text">
        body{
            background: url("[[@{/}]]img/2.jpg");
        }
    </style>
    <meta charset="UTF-8"/>
    <title>删除类别</title>

</head>
<body>
<div th:replace="~{layout::header}"></div>
<div class="container" style="margin-left:400px">
    <h3 >确认删除类别</h3>

        <form th:action="@{/category/delete}" method="post">

            <label>类别id:</label>     <input type="text"  name="id" th:value="${category.getId()}"></br>
            <label>类别名称:</label>     <input type="text"   name="name" th:value="${category.getName()}"></br>

                    <input type="submit" value="确认删除" />
                    <a  th:href="@{/category/list}" >返回</a>
</form>
</div>
</body>
</html>